package me.firstapp.repository.system;

import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.system.EmailConfig;
import me.firstapp.repository.base.EntityRepository;

public interface EmailConfigRepository extends EntityRepository<EmailConfig> {

	EmailConfig findByApiClientIdAndStatus(Long apiClientId, Integer status);

	EmailConfig findById(Long id, Long apiClientId);
	
	Page<EmailConfig> findEmailConfigPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams, String sortParam,
			String sortType, Long apiClientId);
}
